/**
 * Created with IntelliJ IDEA.
 * User: ajhin
 * Date: 8/7/13
 * Time: 6:06 PM
 * To change this template use File | Settings | File Templates.
 */
package societyGames.codeAlong.model
{
import societyGames.xmlFragment.XMLFragment;

public class Case extends XMLFragment
{
  override protected function getDefaultXML():XML
  {
    return _defaultXML;
  }

  public function get swf():String
  {
    return _xml.@swf;
  }

  [Bindable]
  public function set swf(value:String):void
  {
    _xml.@swf = value;
  }

  public function get className():String
  {
    return _xml["@class"];
  }

  [Bindable]
  public function set className(value:String):void
  {
    _xml["@class"] = value;
  }

  public function get repeat():String
  {
    return _xml.@repeat;
  }

  [Bindable]
  public function set repeat(value:String):void
  {
    _xml.@repeat = value;
  }

  public function get actions():String
  {
    return _xml.@actions;
  }

  [Bindable]
  public function set actions(value:String):void
  {
    _xml.@actions = value;
  }

  public function get xmlChildren():XMLList
  {
    return _xml.*;
  }

  [Bindable]
  public function set xmlChildren(value:XMLList):void
  {
    _xml.setChildren(value);
  }

  private const _defaultXML:XML =
          <case swf="RobotZero/RobotZeroContainer.swf" class="com.societyGames.robotExercises.RobotCodeExercise">
            <robotStartX>1</robotStartX>
            <robotStartY>1</robotStartY>
          </case>
}
}
